package com.simtop;

import java.net.DatagramSocket;
import java.net.InetAddress;


public class Test3 {
    public static void main(String[] args) throws Exception {
        {
            Runtime rn = Runtime.getRuntime();
            Process  p= null;
            try {
                //执行的文件的位置
                String cmd = "D:\\58378_4wfa_1314\\互动FTP\\互动FTP.exe";
                p = rn.exec(cmd);
                System.out.println("成功打开软件和文件！");

            } catch (Exception e) {
                System.out.println("打开软件失败");
                e.printStackTrace();
            }
        }
    }
}

